package com.admin.kotlintest.adapter

import android.content.Context
import com.admin.kotlintest.R
import com.admin.kotlintest.base.AdapterHolder
import com.admin.kotlintest.base.CurrencyAdapter
import com.admin.kotlintest.bean.Type

/**
 * Created by 吴昶 on 2018/4/12.
 */
class SpinnerTypeAdapter(context: Context,layout:Int,data:MutableList<Type>?):CurrencyAdapter<Type>(context,layout,data){
    override fun convert(holder: AdapterHolder, item: Type, position: Int) {
        holder.setTextViewText(R.id.tv_spinner_type, item.name)
    }

}